﻿<UserControl x:Class="CartoonViewer.UC_DownloadItem"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             MouseEnter="UserControl_MouseEnter"
             MouseLeave="UserControl_MouseLeave"
             MouseLeftButtonUp="UserControl_MouseLeftButtonUp"
             Loaded="UserControl_Loaded" 
     >
    <Grid Margin="0" Height="26"  >
        <Grid.RowDefinitions>
            <RowDefinition></RowDefinition>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition x:Name="Column00" Width="100"></ColumnDefinition>
            <ColumnDefinition x:Name="Column01" Width="250"></ColumnDefinition>
            <ColumnDefinition x:Name="Column02" Width="250"></ColumnDefinition>
            <ColumnDefinition x:Name="Column03" Width="200"></ColumnDefinition>
            <ColumnDefinition x:Name="Column04" Width="100"></ColumnDefinition>
        </Grid.ColumnDefinitions>

        
        <Canvas x:Name="PanelColumn00" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left"  Width="100" Margin="2,1,0,4">
            <Button x:Name="BtnStart" DockPanel.Dock="Left" Content="开始" Margin="2,2,0,0" Background="Transparent" Visibility="Hidden"></Button>
            <Button x:Name="BtnSuspend" DockPanel.Dock="Left" Content="暂停" Margin="2,2,0,0" Background="Transparent" Visibility="Hidden" ></Button>
            <Button x:Name="BtnCancel" DockPanel.Dock="Left" Content="取消" Margin="35,2,0,0" Background="Transparent" Visibility="Hidden" ></Button>
        </Canvas>
        
        <Canvas x:Name="PanelColumn01"  Grid.Column="1" Grid.Row="0" VerticalAlignment="Top" Margin="8,8,9,0" Width="250" > 
            <TextBlock x:Name="TxtTitle" TextAlignment="Center"   HorizontalAlignment="Left"   Width="227">标题</TextBlock>
            
        </Canvas>
        <Canvas x:Name="PanelColumn02"  Grid.Column="2" Grid.Row="0" VerticalAlignment="Top" Margin="11,8,10,0" Width="250" >
            <TextBlock x:Name="TxtFileName" TextAlignment="Center" VerticalAlignment="Center" Height="14"  >文件名</TextBlock>
        </Canvas>
        <Canvas x:Name="PanelColumn03"  Grid.Column="3" Grid.Row="0" VerticalAlignment="Top"  Margin="5,4,0,0" Width="200" Height="0">
            <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center" Height="19"    >
                <ProgressBar Width="100" Height="15" Value="10" Maximum="1" Margin="2,0,2,0" 
                    Name="progressBar1" Style="{StaticResource ProgressBarStyle}">
                </ProgressBar>
                <TextBlock x:Name="TxtProgress" Text="100%" TextAlignment="Center" HorizontalAlignment="Center"  Width="100" Margin="2,2,0,0" ></TextBlock>
            </StackPanel>
        </Canvas>
        <Canvas x:Name="PanelColumn04"  Grid.Column="4" Grid.Row="0" Margin="2,4,0,0" Height="6" VerticalAlignment="Top">
            <TextBlock x:Name="TxtSpeed" Canvas.Right="4" TextAlignment="Center" VerticalAlignment="Center" ></TextBlock>
        </Canvas>
        
    </Grid>
</UserControl>
